<%  @id = session[:user_id]
    if(@id != nil)
        @user = User.find(@id)
%>
    Zalogowany: <b> <%= @user.login %> </b>&nbsp; &nbsp; 
    <%= link_to 'Wyloguj', {:controller=>"main" , :action=> "logout"}, :class=>"login" %>
    
<%
    end
%>
